<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::group([ 'prefix' => 'qiniu' ], function(){
    // 获取上传文件的token
    Route::get('/', 'QiniuController@getUpToken');
    // 获取七牛文件的url
    Route::get('/url', 'QiniuController@getFileUrl');
});

require_once('Routes/View/User/User.php');
require_once('Routes/View/User/GiRecord.php');
require_once('Routes/View/User/Doctor.php');
require_once('Routes/View/User/Message.php');
require_once('Routes/View/User/Weight.php');
require_once('Routes/View/User/HealthInfo.php');


Route::group(['prefix' => 'api'],function(){
	require_once('Routes/Api/User/WeChat.php');
	require_once('Routes/Api/User/User.php');
	require_once('Routes/Api/User/GiRecord.php');
	require_once('Routes/Api/User/Weight.php');
	require_once('Routes/Api/User/Message.php');
});

Route::group(['prefix' => 'admin'],function(){
	require_once('Routes/View/Admin/Login.php');
	require_once('Routes/View/Admin/WechatUser.php');
	require_once('Routes/View/Admin/WechatDoctor.php');
	require_once('Routes/View/Admin/User.php');
	require_once('Routes/View/Admin/Log.php');
	require_once('Routes/View/Admin/Article.php');
});


Route::group(['prefix' => 'api/admin','namespace' => 'Api\Admin'],function(){
	require_once('Routes/Api/Admin/Login.php');
	require_once('Routes/Api/Admin/Doctor.php');
	require_once('Routes/Api/Admin/User.php');
	require_once('Routes/Api/Admin/Article.php');
});
